const fs = require("fs");
const path = require("path");

var dirPath = __dirname;

fs.readdir(dirPath,(err,files)=>{
    if(err){
        console.log(err);
    }
    else{
        var filePath = path.join(__dirname,"/"+files[1]);
        fs.unlinkSync(filePath);//删除文件
    }
});


res.writeHead(200,{"Content-type":"text/html;charset=utf-8"});